package io.gitee.zicai.graphql.sample.controller;

import io.gitee.zicai.graphql.sample.dao.StudentRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * StudentController
 *
 * @author zicai
 * @since 2021-04-09
 */
@RestController
@RequestMapping("/student")
public class StudentController {

    @Autowired
    private StudentRepo studentRepo;

    @GetMapping("/add")
    public String add(String name, Integer age) {
        return "success";
    }
}
